

package jetbrains.buildServer.server.rest.model;

import jetbrains.buildServer.server.rest.swagger.annotations.ModelDescription;

import java.util.ArrayList;
import java.util.Collection;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Yegor.Yarko
 *         Date: 13.07.2009
 */
@SuppressWarnings("PublicField")
@XmlRootElement(name = "items")
@ModelDescription("Represents a list of items (strings).")
public class Items {
  @XmlElement(name = "item")
  public Collection<String> items;

  public Items() {
  }

  public Items(final Collection<String> tagsP) {
    items = new ArrayList<String>(tagsP);
  }
}